package org.hisp.dhis.wsclient.j2me.javarosa;

import java.io.IOException;

import javax.microedition.lcdui.Image;

import org.javarosa.core.api.IView;

public class Util
{
    static Image createImage( String imageFilename )
    {
        try
        {
            return Image.createImage( imageFilename );
        }
        catch ( IOException e )
        {
            return null;
        }
    }

    static IView createIView( final Object screen )
    {
        return new IView()
        {
            public Object getScreenObject()
            {
                return screen;
            }
        };
    }
}
